/* Markdown Alt风格的主题 */
.markdown-theme-markdown-alt {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #24292e;
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.markdown-theme-markdown-alt h1,
.markdown-theme-markdown-alt h2,
.markdown-theme-markdown-alt h3,
.markdown-theme-markdown-alt h4,
.markdown-theme-markdown-alt h5,
.markdown-theme-markdown-alt h6 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #0b4075;
}

.markdown-theme-markdown-alt h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 3px solid #0b4075;
}

.markdown-theme-markdown-alt h2 {
  font-size: 1.6em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-theme-markdown-alt h3 {
  font-size: 1.3em;
}

.markdown-theme-markdown-alt h4 {
  font-size: 1.1em;
}

.markdown-theme-markdown-alt h5 {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.markdown-theme-markdown-alt h6 {
  font-size: 0.9em;
  color: #6a737d;
}

.markdown-theme-markdown-alt p {
  margin-bottom: 16px;
}

.markdown-theme-markdown-alt a {
  color: #1671c5;
  text-decoration: none;
}

.markdown-theme-markdown-alt a:hover {
  text-decoration: underline;
}

.markdown-theme-markdown-alt blockquote {
  padding: 0 1em;
  color: #6a737d;
  border-left: 0.25em solid #1671c5;
  margin: 1em 0;
}

.markdown-theme-markdown-alt code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  padding: 0.2em 0.4em;
  margin: 0;
  font-size: 85%;
  background-color: rgba(27, 31, 35, 0.05);
  border-radius: 3px;
}

.markdown-theme-markdown-alt pre {
  word-wrap: normal;
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 16px;
  overflow: auto;
  margin-bottom: 16px;
}

.markdown-theme-markdown-alt pre code {
  background-color: transparent;
  border: 0;
  display: inline;
  line-height: inherit;
  margin: 0;
  overflow: visible;
  padding: 0;
  word-wrap: normal;
}

.markdown-theme-markdown-alt img {
  max-width: 100%;
  box-sizing: content-box;
  margin: 1em 0;
  border-style: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.markdown-theme-markdown-alt hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}

.markdown-theme-markdown-alt ul,
.markdown-theme-markdown-alt ol {
  padding-left: 2em;
  margin-bottom: 16px;
}

.markdown-theme-markdown-alt ul ul,
.markdown-theme-markdown-alt ul ol,
.markdown-theme-markdown-alt ol ol,
.markdown-theme-markdown-alt ol ul {
  margin-top: 0;
  margin-bottom: 0;
}

.markdown-theme-markdown-alt li {
  margin-bottom: 0.25em;
}

.markdown-theme-markdown-alt li + li {
  margin-top: 0.25em;
}

.markdown-theme-markdown-alt table {
  border-spacing: 0;
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  overflow: auto;
}

.markdown-theme-markdown-alt table th {
  font-weight: 600;
  background-color: #f1f8ff;
}

.markdown-theme-markdown-alt table th,
.markdown-theme-markdown-alt table td {
  padding: 6px 13px;
  border: 1px solid #dfe2e5;
}

.markdown-theme-markdown-alt table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.markdown-theme-markdown-alt table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

/* 特殊元素 */
.markdown-theme-markdown-alt .task-list-item {
  list-style-type: none;
}

.markdown-theme-markdown-alt .task-list-item input {
  margin: 0 0.2em 0.25em -1.6em;
  vertical-align: middle;
}

.markdown-theme-markdown-alt .footnotes {
  font-size: 0.9em;
  color: #6a737d;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

/* 暗色模式 */
.dark-mode .markdown-theme-markdown-alt {
  color: #e6edf3;
  background-color: #0d1117;
}

.dark-mode .markdown-theme-markdown-alt h1,
.dark-mode .markdown-theme-markdown-alt h2,
.dark-mode .markdown-theme-markdown-alt h3,
.dark-mode .markdown-theme-markdown-alt h4,
.dark-mode .markdown-theme-markdown-alt h5 {
  color: #58a6ff;
}

.dark-mode .markdown-theme-markdown-alt h6 {
  color: #8b949e;
}

.dark-mode .markdown-theme-markdown-alt h1 {
  border-bottom: 3px solid #58a6ff;
}

.dark-mode .markdown-theme-markdown-alt h2 {
  border-bottom: 1px solid #30363d;
}

.dark-mode .markdown-theme-markdown-alt a {
  color: #58a6ff;
}

.dark-mode .markdown-theme-markdown-alt blockquote {
  color: #8b949e;
  border-left: 0.25em solid #58a6ff;
}

.dark-mode .markdown-theme-markdown-alt code {
  background-color: rgba(240, 246, 252, 0.15);
}

.dark-mode .markdown-theme-markdown-alt pre {
  background-color: #161b22;
}

.dark-mode .markdown-theme-markdown-alt hr {
  background-color: #30363d;
}

.dark-mode .markdown-theme-markdown-alt table th {
  background-color: #161b22;
}

.dark-mode .markdown-theme-markdown-alt table th,
.dark-mode .markdown-theme-markdown-alt table td {
  border: 1px solid #30363d;
}

.dark-mode .markdown-theme-markdown-alt table tr {
  background-color: #0d1117;
  border-top: 1px solid #30363d;
}

.dark-mode .markdown-theme-markdown-alt table tr:nth-child(2n) {
  background-color: #161b22;
}

.dark-mode .markdown-theme-markdown-alt .footnotes {
  color: #8b949e;
  border-top: 1px solid #30363d;
} 